package com.sinosoft.perfect.system._worksite.service;

import java.sql.SQLException;
import java.util.List;

import com.sinosoft.perfect.system._.po.TWorksite;

public interface IWorksiteService {

	/**
	 * 增加工作站,返回主键worksiteId
	 */
	public String insertByTWorksite(TWorksite tworksite) throws SQLException;

	/**
	 * 查询工作站
	 */
	public List<TWorksite> selectByTWorksite(TWorksite tworksite) throws SQLException;

	/**
	 * 更新工作站
	 */
	public void updateTWorksite(TWorksite tworksite) throws SQLException;

	/**
	 * 删除工作站,同时清除组织机构中,已经选择的工作站id
	 */
	public void deleteTWorksiteByPK(TWorksite tworksite) throws SQLException;
}
